package com.horay.springclouddemo.model.hystrix;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 豪猪
 *
 * @author heyingcheng
 * @date 2020/3/21 20:11
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
public class Hystrix {

    private Integer id;

    private String name;

    public Hystrix(Integer id) {
        this.id = id;
        this.name = Hystrix.class.getName().concat(String.valueOf(id));
    }

}
